//
//  LKShopTreasureLogListCell.m
//  Mideleague_Shop
//
//  Created by Zhiwang on 2020/7/10.
//  Copyright © 2020 Zhiwang. All rights reserved.
//

#import "LKShopTreasureLogListCell.h"


@interface LKShopTreasureLogListCell()

@property (weak, nonatomic) IBOutlet UILabel *nameLabel;

@property (weak, nonatomic) IBOutlet UILabel *dateLabel;
@property (weak, nonatomic) IBOutlet UILabel *idLabel;
@property (weak, nonatomic) IBOutlet UILabel *operaterLabel;

@end


@implementation LKShopTreasureLogListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
-(void)setModel:(LKShopTreasureModel *)model{
    _model = model;
    self.dateLabel.text = [NSString timestampSwitchTime:[_model.add_time integerValue] andFormatter:@"YYYY-MM-dd HH:mm:ss"];
    self.idLabel.text = [NSString stringWithFormat:@"设备ID：%@",_model.sn];
    self.operaterLabel.text = [NSString stringWithFormat:@"操作人：%@",_model.user];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
